import { createSSRApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import uView from '@/uni_modules/vk-uview-ui'
import '@/static/css/layout.scss'

import http from './static/js/request';
import util from './static/js/util';
import verify from './static/js/verify';
import icon from './static/js/icon';
export function createApp() {
    const app = createSSRApp(App);
    const pinia = createPinia();
    app.use(pinia);
    app.use(uView);    
    app.config.globalProperties.$http = http;
    app.config.globalProperties.$util = util;
    app.config.globalProperties.$verify = verify;
    app.config.globalProperties.$icon = icon;
    return {
        app
    }
}
